package com.itheima.mapdemo;

import java.util.HashMap;
import java.util.Map;

public class MapDemo1 {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
/**
 *
 */
        map.put("itheima001","张三");
        map.put("itheima002","李四");
        map.put("itheima003","王舞");

        System.out.println(map);
        System.out.println("map.size() = " + map.size());
        System.out.println(map.remove("itheima002"));
        System.out.println("map.size() = " + map.size());

        System.out.println(map.containsKey("itheima003"));
        System.out.println("map.size() = " + map.size());

        map.clear();
        System.out.println("map.size() = " + map.size());

        System.out.println("map.isEmpty() = " + map.isEmpty());
        System.out.println("map.size() = " + map.size());



    }
}
